a = eval(input())
b = eval(input()) / 1200
c = eval(input())

sum = 0
for i in range(1,c+1):
    sum += pow(1+b,i)


result = a * sum
print('After the ' + str(c) + 'th month, the account value is',result)